﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCLHCaiLiaoInfo.ascx.cs" Inherits="Web.Controls.LAIHAN.UCLHCaiLiaoInfo" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<script defer="defer" src="../../../PageJS/wap.js"></script>
<script type="text/javascript">

    function SetSelectValue(index) {
        //选中当前
        var list = cblCAILIAO.GetSelectedIndices();
        list += "," + index;
        cblCAILIAO.SelectIndices(list);
    }

    function openDY(bbid) {
        var lhbh = UCLHCaiLiaoInfo_hdCollection.Get("lhbh");
        var yhh = UCLHCaiLiaoInfo_hdCollection.Get("yhh");
        var lhlx = UCLHCaiLiaoInfo_hdCollection.Get("lhlx");
        if (typeof (lhbh) == undefined || typeof (lhbh) == 'undefined')
            lhbh = GetQueryString("laihanbh");
        var params = new Array();
        params.push("V_LAIHANLX:" + lhlx);
        params.push("V_LAIHANBH:" + lhbh);
        params.push("V_YONGHUH:" + yhh);
        //alert(params.join("|"));

        wap.common.printjx('ZhangDanDY',
            [
                { key: 'QUERYPARAM', value: params.join("|") },
                { key: 'BAOBIAOID', value: bbid },
                { key: 'USERINFO', value: "csms" }
            ]);
        //openCenter("/Pages/YongShui/15.BaoBiaoGL/BaoBiaoView.aspx?baobiaoid=" + bbid + "&baobiaocs=V_LAIHANBH:" + lhbh, "1000px", "1000px");
    }
    //function openDY(bbid) {
    //    var lhbh = UCLHCaiLiaoInfo_hdCollection.Get("lhbh");
    //    var yhh = UCLHCaiLiaoInfo_hdCollection.Get("yhh");
    //    var lhlx = UCLHCaiLiaoInfo_hdCollection.Get("lhlx");
    //    alert(lhbh);
    //    alert(yhh);
    //    alert(lhlx);
    //    if ((lhbh == "" && yhh == "")||(lhbh==undefined&&yhh==undefined))
    //    {
    //        return;
    //    }
    //    openCenter("/Pages/YongShui/15.BaoBiaoGL/BaoBiaoView.aspx?baobiaoid=" + bbid + "&baobiaocs=V_LAIHANBH:" + lhbh + ",V_YONGHUH:" + yhh+",V_LAIHANLX:"+lhlx, "1000px", "1000px");
    //}
</script>


<fieldset style="border: 1px solid cornflowerblue;">
    <legend>
        <b>材料信息</b>
    </legend>
    <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="UCLHCaiLiaoInfo_hdCollection" runat="server"></dx:ASPxHiddenField>
    <dx:ASPxCheckBoxList ID="cblCAILIAO" RepeatLayout="Table" ClientInstanceName="cblCAILIAO" TextField="S_CAILIAOMC" ValueField="I_CAILIAOBH" RepeatDirection="Horizontal" RepeatColumns="4" CheckBoxStyle-HorizontalAlign="Center" ReadOnly="true" Width="100%" runat="server" ValueType="System.String">

    </dx:ASPxCheckBoxList>
    <div style="margin-top: 15px; text-align: right;">
        <dx:ASPxButton ID="btnBZCL" runat="server" UseSubmitBehavior="false" AutoPostBack="false" Text="补正材料通知书打印" ClientSideEvents-Click="function(s,e){openDY(100002)}">
        </dx:ASPxButton>
        <dx:ASPxButton ID="btnPZDY" runat="server" UseSubmitBehavior="false" AutoPostBack="false" Text="材料收件凭证打印" ClientSideEvents-Click="function(s,e){openDY(100001)}"></dx:ASPxButton>
    </div>
</fieldset>